package com.audi.box.devicecenter;

import java.util.HashMap;
import java.util.Map;

import android.provider.ContactsContract.CommonDataKinds.Identity;

public abstract class IDeviceManager {	
	private Map<String, IDevice> lstDeviceList = new HashMap<String, IDevice>();
	
	public Map getDeviceList(){
		return lstDeviceList;		
	}
	
	public void addDevice(IDevice device){
		if(device != null)
			lstDeviceList.put(device.getDeviceId(), device);
	}
	
	public void removeDevice(IDevice device){
		if(device != null)
			lstDeviceList.remove(device.getDeviceId());
	}
	
	public IDevice getDevice(String deviceId){		
		return (deviceId != null)?lstDeviceList.get(deviceId):null;
	}
	
	public int execCommand(){
		
		return 0;		
	}
	
	public abstract void initDeviceList();
	
}
